OpenChannelListAdapter

open class OpenChannelListAdapter : BaseAdapter<T, VH>

OpenChannelListAdapter provides a binding from a OpenChannel type data set to views that are displayed within a RecyclerView. since 3.2.0

Constructors

Link copied to clipboard
open fun OpenChannelListAdapter()
Constructor
Link copied to clipboard
open fun OpenChannelListAdapter(@Nullable listener: OnItemClickListener<OpenChannel>)
Constructor

Functions

Link copied to clipboard
open fun getItem(position: Int): OpenChannel
Returns the OpenChannel in the data set held by the adapter.
Link copied to clipboard
open fun getItemCount(): Int
Returns the total number of items in the data set held by the adapter.
Link copied to clipboard
open fun getItems(): List<OpenChannel>
Returns the < in the data set held by the adapter.
Link copied to clipboard
open fun getOnItemClickListener(): OnItemClickListener<OpenChannel>
Returns a callback to be invoked when the itemView is clicked.
Link copied to clipboard
open fun getOnItemLongClickListener(): OnItemLongClickListener<OpenChannel>
Returns a callback to be invoked when the itemView is clicked and held.
Link copied to clipboard
open fun onBindViewHolder(@NonNull holder: BaseViewHolder<OpenChannel>, position: Int)
Called by RecyclerView to display the data at the specified position.
Link copied to clipboard
open fun onCreateViewHolder(@NonNull parent: ViewGroup, viewType: Int): BaseViewHolder<OpenChannel>
Called when RecyclerView needs a new < of the given type to represent an item.
Link copied to clipboard
open fun setItems(@NonNull openChannelList: List<OpenChannel>)
Sets the < to be displayed.
Link copied to clipboard
open fun setOnItemClickListener(@Nullable listener: OnItemClickListener<OpenChannel>)
Register a callback to be invoked when the itemView is clicked.
Link copied to clipboard
open fun setOnItemLongClickListener(@Nullable listener: OnItemLongClickListener<OpenChannel>)
Register a callback to be invoked when the itemView is clicked and held.